import 'package:xin_he/generated/json/base/json_convert_content.dart';
import 'package:xin_he/page/mine/xin_he_mine_cloud_cha_zi/xin_he_assets_account_list_item_entity.dart';

XinHeAssetsAccountListItemEntity $XinHeAssetsAccountListItemEntityFromJson(Map<String, dynamic> json) {
	final XinHeAssetsAccountListItemEntity xinHeAssetsAccountListItemEntity = XinHeAssetsAccountListItemEntity();
	final String? assetType = jsonConvert.convert<String>(json['assetType']);
	if (assetType != null) {
		xinHeAssetsAccountListItemEntity.assetType = assetType;
	}
	final String? businessId = jsonConvert.convert<String>(json['businessId']);
	if (businessId != null) {
		xinHeAssetsAccountListItemEntity.businessId = businessId;
	}
	final String? createTime = jsonConvert.convert<String>(json['createTime']);
	if (createTime != null) {
		xinHeAssetsAccountListItemEntity.createTime = createTime;
	}
	final String? fUserId = jsonConvert.convert<String>(json['fUserId']);
	if (fUserId != null) {
		xinHeAssetsAccountListItemEntity.fUserId = fUserId;
	}
	final int? fuserId = jsonConvert.convert<int>(json['fuserId']);
	if (fuserId != null) {
		xinHeAssetsAccountListItemEntity.fuserId = fuserId;
	}
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		xinHeAssetsAccountListItemEntity.id = id;
	}
	final double? remainder = jsonConvert.convert<double>(json['remainder']);
	if (remainder != null) {
		xinHeAssetsAccountListItemEntity.remainder = remainder;
	}
	final String? remark = jsonConvert.convert<String>(json['remark']);
	if (remark != null) {
		xinHeAssetsAccountListItemEntity.remark = remark;
	}
	final double? tradeAmount = jsonConvert.convert<double>(json['tradeAmount']);
	if (tradeAmount != null) {
		xinHeAssetsAccountListItemEntity.tradeAmount = tradeAmount;
	}
	final String? tradeType = jsonConvert.convert<String>(json['tradeType']);
	if (tradeType != null) {
		xinHeAssetsAccountListItemEntity.tradeType = tradeType;
	}
	return xinHeAssetsAccountListItemEntity;
}

Map<String, dynamic> $XinHeAssetsAccountListItemEntityToJson(XinHeAssetsAccountListItemEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['assetType'] = entity.assetType;
	data['businessId'] = entity.businessId;
	data['createTime'] = entity.createTime;
	data['fUserId'] = entity.fUserId;
	data['fuserId'] = entity.fuserId;
	data['id'] = entity.id;
	data['remainder'] = entity.remainder;
	data['remark'] = entity.remark;
	data['tradeAmount'] = entity.tradeAmount;
	data['tradeType'] = entity.tradeType;
	return data;
}